//
//  AxImKitChatMessage.h
//  AxImKit
//
//  Created by xuxinhua on 2020/2/28.
//  Copyright © 2020 xuxinhua. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger,AxImKitChatMessageStatus) {
    AxImKitChatMessageStatusNone = 10,
    AxImKitChatMessageStatusSending,
    AxImKitChatMessageStatusSuccess,
    AxImKitChatMessageStatusFail,
    AxImKitChatMessageStatusDelete
};

typedef NS_ENUM(NSInteger,AxImKitChatMessageReadStatus) {
    AxImKitChatMessageReadStatusUnread = 0,
    AxImKitChatMessageReadStatusRead
};

typedef NS_ENUM(NSInteger,AxImKitChatMessageSource) {
    AxImKitChatMessageSourceMe = 0,
    AxImKitChatMessageSourceOther
};

typedef NS_ENUM(NSInteger,AxImKitChatMessageOtherReceivedStatus) {
    AxImKitChatMessageOtherReceivedStatusUnReceived = 0,
    AxImKitChatMessageOtherReceivedStatusReceived
};
NS_ASSUME_NONNULL_BEGIN

@interface AxImKitChatMessage : NSObject<NSCopying,NSMutableCopying>
@property (nonatomic,assign) NSInteger pkid;//主键
@property (nonatomic,assign) long time;//消息时间
@property (nonatomic,copy) NSString *appId;//消息归属应用
@property (nonatomic,copy) NSString *fromUser;//消息发送人
@property (nonatomic,copy) NSString *sessionId;//会话id
@property (nonatomic,copy) NSString *messageSequeue;//消息序列
@property (nonatomic,copy) NSString *mode;//消息模式
@property (nonatomic,copy) NSString *json;//消息完整报文
@property (nonatomic,copy) NSString *toUser;//消息归属会话
@property (nonatomic,copy) NSString *loginAccId;
@property (nonatomic,copy) NSString *loginAccToken;
@property (nonatomic,assign) AxImKitChatMessageStatus status;//消息状态
@property (nonatomic,assign) AxImKitChatMessageReadStatus otherRead;//用户接收的消息是否已读
@property (nonatomic,assign) AxImKitChatMessageSource source;//消息来源自己还是别人
@property (nonatomic,assign) AxImKitChatMessageOtherReceivedStatus otherReceived;//对方是否已接收

@end

NS_ASSUME_NONNULL_END

